(function() {
   var m = ns('J3D').Matrix;
   var f = ns('J3D').F;
   
   $('#title').html(new Date().toUTCString());
   
   var resize = function() {
     var panel = $('#panel-left');
     var h = panel.height();
     var w = panel.width();
     var canvas = $('#map-canvas');
     canvas.css({
         height: h - 40,
         width: w - 40});
     return [w, h];
   };
   
   var camera = function(fovy, aspect, near, far) {
     return m.perspective(fovy, aspect, near, far);
   };
   
   var viewCoord = function(transforms, realCoord) {
     return f.reduce(m.multiplyMatVec, realCoord)(transforms);
   };
   
   (function main() {
      resize();
    })();
 })();
